//
//  YZUserAgreementViewController.m
//  kuaiyi
//
//  Created by 刘邓诏初 on 16/5/5.
//
//

#import "YZUserAgreementViewController.h"

@interface YZUserAgreementViewController ()
/// web
@property(nonatomic,strong)UIWebView *agreementWebView;
@end

@implementation YZUserAgreementViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.agreementWebView];
    NSURL *url = [[ NSURL alloc ] initWithString :@"http:www.baidu.com"];
    [self.agreementWebView loadRequest:[ NSURLRequest requestWithURL: url]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}

#pragma mark - 懒加载
-(UIWebView *)agreementWebView{
    if (_agreementWebView == nil) {
        _agreementWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];
    }
    return _agreementWebView;
}

@end
